import java.util.*;

public class Bills {
    public static void main(String[] args) {
        double[] amount = new double[2];
        Scanner console = new Scanner(System.in);        
        System.out.print("How much will John be spending? ");
        amount[0] = console.nextDouble();
        System.out.println();
        System.out.print("How much will Jane be spending? ");
        amount[1] = console.nextDouble();
        System.out.println();
        System.out.println("John needs " + getBills(amount[0]) + " bills");
        System.out.println("Jane needs " + getBills(amount[1]) + " bills");
    }
    public static int getBills(double amount) {
        int numBills = (int) (amount / 20.0);
        if (numBills * 20.0 < amount) {
            numBills = numBills+1;
        }
        return numBills;
    }
}
